'use strict';
const dayjs = require("dayjs");
module.exports = app => {
    const { INTEGER, STRING  } = app.Sequelize;
    return app.model.define(
        'RabbitRoom',
        {
            id: {type: INTEGER, primaryKey: true, autoIncrement: true},
            room: INTEGER,
            room_text: STRING,
            farm_id: INTEGER,
            breed: STRING,
            period: STRING,
            location: STRING,
        },
        {
            tableName: 'room',
            timestamps: false, // 启用时间戳(createdAt, updatedAt)
        }
    );
};

